package com.mindata.blockchain.core.controller.LogMessageController;

import com.mindata.blockchain.block.LogMessage.IMessageService;


import com.mindata.blockchain.block.LogMessage.LogMessageEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/log")
public class LogController<T> {
    @Autowired
    private IMessageService<LogMessageEntity> iLogMessageMessage;


    @RequestMapping("/logMessage")
    public List<LogMessageEntity> printLog(@RequestParam("instructionId") String instructionId){

        return iLogMessageMessage.getMessage(instructionId);
    }
}
